<?php

namespace App\Http\Controllers\user;

use App\Dao\GoodsDao;
use App\Services\Code;

class GoodsController extends BaseController
{
    public function goods(): array
    {
        $params = array_merge(request()->all(),[
            'show'=>0,
            'status_del'=>0
        ]);
        return Code::message('',200,GoodsDao::goods($params));
    }

    public function goods_info()
    {
        return Code::message('',200,GoodsDao::goods_info(request()->all()));
    }
}
